package com.tourism.service;

import com.github.pagehelper.PageInfo;
import com.tourism.entity.Room;
import com.tourism.entity.RoomQuery;
import com.tourism.exception.GlobalException;
import org.apache.ibatis.annotations.Param;

public interface RoomService {
    /**
     * 根据id查询房间信息
     *
     * @param id
     * @return
     */
    Room getRoomById(Long id);
    /**
     * 根据id删除房间信息
     *
     * @param id
     * @return
     */
    Boolean deleteRoomById(Long id);

    /**
     * 新增房间
     *
     * @param room
     * @return
     */
    boolean addRoom(Room room);
    /**
     * 修改房间
     *
     * @return
     */
    boolean updateRoom(Room room);


    /**
     * 分页查询房间列表
     *
     * @param roomQuery
     * @return
     */
    PageInfo<Room> getRoomList(RoomQuery roomQuery);

}
